<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <!-- <button onclick="alert('加载了--')">点击</button> -->
   <button>加载</button>
  <!-- <script>
    document.querySelector('button').onclick = function(){
      alert('加载了--')
    };
  </script> -->
  <script src="./scripts/test.js"></script>
</body>
</html>